/**
 * 
 */
package com.geekteam.masterenglish.Adapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.view.View;

/**
 * @author MTROL
 *
 */
public class ListFragmentAdapter extends FragmentPagerAdapter {
	protected List<Fragment> mListFragments;
	
	public ListFragmentAdapter(FragmentManager fm, List<Fragment> listFragment) {
		super(fm);
		mListFragments = listFragment;
	}

	@Override
	public Fragment getItem(int position) {
		return mListFragments.get(position);
	}

	@Override
	public int getCount() {
		if (mListFragments == null){
			return 0;
		}
		return mListFragments.size();
	}

	@Override
	public void destroyItem(View container, int position, Object object) {

	}

}
